<?php

namespace app\index\controller;

class Index {
    public function index() {
        return json(['errorCode' => 0, 'msg' => '访问成功！']);
    }

    public function hello($name = 'ThinkPHP5') {
        return 'hello,' . $name;
    }
}
